import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/Login'
    },
    {
      path: '/Home',
      component: () => import('@/pages/Home/Home'),
      meta: {
        title: '主页'
      }
    },
    {
      path: '/Shop',
      component: () => import('@/pages/Shop/Shop'),
      meta: {
        title: '商店'
      }
    },
    {
      path: '/Community',
      component: () => import('@/pages/Community/Community'),
      meta: {
        title: '社区'
      }
    },
    {
      path: '/Entrance',
      component: () => import('@/pages/Entrance/Entrance'),
      meta: {
        title: '门禁'
      }
    },
    {
      path: '/Myself',
      component: () => import('@/pages/Myself/Myself'),
      meta: {
        title: '我的'
      }
    },
    {
      path: '/Payment',
      component: () => import('@/pages/Payment/Payment'),
      meta: {
        title: '缴费'
      }
    },
    {
      path: '/Maintain',
      component: () => import('@/pages/Maintain/Maintain'),
      meta: {
        title: '维修'
      }
    },
    {
      path: '/Clear',
      component: () => import('@/pages/Clear/Clear'),
      meta: {
        title: '家政服务'
      }
    },
    {
      path: '/AddressList',
      component: () => import('@/pages/Myself/AddressList'),
      meta: {
        title: '收货地址'
      }
    },
    {
      path: '/AddressEdit',
      component: () => import('@/pages/Myself/AddressEdit'),
      meta: {
        title: '新增收货地址'
      }
    },
    {
      path: '/Announce',
      component: () => import('@/pages/Announce/Announce'),
      meta: {
        title: '物业通知'
      }
    },
    {
      path: '/DetalAnnounce',
      component: () => import('@/pages/Announce/DetalAnnounce'),
      meta: {
        title: '物业详细通知'
      }
    },
    {
      path: '/Feedback',
      component: () => import('@/pages/Myself/Feedback'),
      meta: {
        title: '意见反馈'
      }
    },
    {
      path: '/Order',
      component: () => import('@/pages/Myself/Order'),
      meta: {
        title: '物流信息'
      }
    },
    {
      path: '/Login',
      component: () => import('@/pages/Login/Login'),
      meta: {
        title: '登录'
      }
    },
    {
      path: '/Register',
      component: () => import('@/pages/Login/Register'),
      meta: {
        title: '注册'
      }
    },
    {
      path: '/Forget',
      component: () => import('@/pages/Login/Forget'),
      meta: {
        title: '忘记密码'
      }
    },
    {
      path: '/HisMaintain',
      component: () => import('@/pages/Maintain/HisMaintain'),
      meta: {
        title: '维修历史'
      }
    },
    {
      path: '/House',
      component: () => import('@/pages/Myself/House'),
      meta: {
        title: '房屋认证'
      }
    },
    {
      path: '/one',
      component: () => import('@/pages/Community/one')
    },
    {
      path: '/two',
      component: () => import('@/pages/Community/two')
    },
    {
      path: '/pingjia',
      component: () => import('@/pages/Community/pingjia')
    }
  ]
})
